/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package asaexpr;

/**
 *
 * @author Florian
 */
public class ASAExprDiv extends ASAExpr {
    
    private ASAExpr e1;
    private ASAExpr e2;
    
    public ASAExprDiv(ASAExpr e1, ASAExpr e2) {
        this.e1 = e1;
        this.e2 = e2;
    }
    
    @Override
    public ASAExpr getExpr1() {
        return e1;
    }

    @Override
    public ASAExpr getExpr2() {
        return e2;
    }
    
    
    public int evalue() {
        return (int) e1.getValeur() / e2.getValeur();
    }
    
    @Override
    public String getLabelExplorateur() {
        return "DIV " + this.getValeur();
    }
}
